<?php

namespace mpend\modules\search\controllers;

use Yii;
use mpend\components\Controller;
use mpend\modules\search\models\KeywordUnifiedSearch;

/**
 * 关键词检索接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    public function actionIndex() {
        $model = new KeywordUnifiedSearch();
        $model->load(Yii::$app->request->getQueryParams(), '');
        return $model->search();
    }

}
